-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix light client sync miss some tx. #2992
Conversation
2116e2f
to
e04879a
Compare
/package |
This package always throws |
/package |
...ges/neuron-wallet/src/database/chain/migrations/1690361215400-ResetSyncProgressPrimaryKey.ts
Show resolved
Hide resolved
packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts
Outdated
Show resolved
Hide resolved
1. Use `partial` and `delete` for set_scripts 2. Sync the next block number after all addresses are synced to the block number 3. Rename `blockStartNumber` to `localSavedBlockNumber`, rename `blockEndNumber` to `syncedBlockNumber`
7c9e564
to
85fcfcd
Compare
/package |
Please have a review @homura @WhiteMinds @devchenyan @zhangyouxin |
packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts
Show resolved
Hide resolved
...ges/neuron-wallet/src/database/chain/migrations/1690361215400-ResetSyncProgressPrimaryKey.ts
Show resolved
Hide resolved
/package |
Neuron in windows can not sync for about two days,sync process can not change or alaways show '正在连接节点'. |
* refactor: Rename connector to synchronizer * fix: fix light sync logic 1. Use `partial` and `delete` for set_scripts 2. Sync the next block number after all addresses are synced to the block number 3. Rename `blockStartNumber` to `localSavedBlockNumber`, rename `blockEndNumber` to `syncedBlockNumber`
Refer to Magickbase/neuron-public-issues#329 (comment).
Additionally, I rename
Connector
toSynchronizer
refer to https://github.com/nervosnetwork/neuron/pull/2965/files#r1412661113. For more clarity, RenameblockStartNumber
tolocalSavedBlockNumber
, renameblockEndNumber
tosyncedBlockNumber
in thesync_progress
table.